package com.lh.createBean;

public class MyClone {

    public static void main(String[] args) {

        try {
            Student student = new Student();

            Student clone = student.clone();

            System.out.println(student);
            System.out.println(clone);
            System.out.println("-------克隆不会调用无参构造方法---------");
            System.out.println(clone == student); //false
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
    }
}
